<template>
  <el-config-provider :locale="locale">
    <router-view />
  </el-config-provider>
</template>

<script lang="ts">
import { defineComponent, ref } from 'vue'
import zhCn from 'element-plus/lib/locale/lang/zh-cn'

export default defineComponent({
  name: 'App',
  setup() {
    const locale = ref(zhCn)
    return {
      locale
    }
  }
})
</script>

<style lang="less">
html,
body,
#app {
  height: 100vh;
  font-size: 15px;
  color: rgba(0, 0, 0, 0.9);
}
body,
div {
  box-sizing: content-box;
}
.icon {
  width: 16px;
  height: 16px;
  vertical-align: sub;
  padding-right: 10px;
}
.flex {
  display: flex;
  align-items: center;
}
/* 设置滚动条的样式 */
::-webkit-scrollbar {
  width: 4px;
  height: 6px;
}
/* 滚动槽 */
::-webkit-scrollbar-track {
  -webkit-box-shadow: inset006pxrgba(0, 0, 0, 0.3);
  border-radius: 4px;
}
/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.5);
  -webkit-box-shadow: inset006pxrgba(0, 0, 0, 0.5);
}
::-webkit-scrollbar-thumb:window-inactive {
  background: rgba(255, 0, 0, 0.4);
}
.el-pagination {
  margin-top: 10px;
}
.el-select--small {
  width: 100% !important;
}
#app {
  background: url('./assets/images/login-bg.svg') center center;
}
.btn {
  position: absolute;
  right: 20px;
  top: 10px;
  display: inline-block;
  z-index: 100;
}
.el-dialog__body {
  padding: 10px 20px !important;
}
.el-table {
  height: calc(100vh - 200px) !important;
}
.table {
  width: 100%;
}
.el-range__close-icon {
  width: 15px !important;
}
.el-range-separator {
  width: 11% !important;
}
.el-dialog {
  margin-top: 4vh !important;
}
</style>
